import airbnb from "@/db";

// mock接口
export async function fetchElephant() {
  await airbnb.airbnbDB.openStore({
    elephant: {
      keyPath: "id",
      indexs: ["nose", "ear"]
    }
  });
  return await airbnb.airbnbDB.getList("elephant").then(res => {
    return {
      code: "000000",
      message: "操作成功",
      result: res,
      success: true
    };
  });
}
